import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }


// 查询检查单详细
export function getData(ucid) {
    return request({
        url: getUrl('/admin/inspect/' + ucid),
        method: 'get'
    })
}

// 新增字典数据
export function addData(data) {
    return request({
        url: getUrl('/admin/inspect'),
        method: 'post',
        data: data
    })
}

// 修改字典数据
export function updateData(data) {
    return request({
        url: getUrl('/admin/inspect'),
        method: 'put',
        data: data
    })
}

// 删除字典数据
export function delData(ucid) {
    return request({
        url: getUrl('/admin/inspect/' + ucid),
        method: 'delete'
    })
}
